<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>优惠码</title>
<meta name="viewport" content="width=100%, initial-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/lib/weix/style/weui.min.css">
<link rel="stylesheet" href="/css/fonts.css">
<link rel="stylesheet" href="/css/comm.css">
<link rel="stylesheet" href="/css/code.css">
</head>

<body>
<div class="body_bj"></div>
<div class="code-boxs">
	<div class="code-tit">
    	<p style=" padding-bottom:5px; font-size:24px;">东鹏门店优惠码</p>
        <p style="font-size:12px;">优惠码编号：${detail["code"]}</p>
    </div>
    <div class="code-x"><img src="/images/code_x.png" /></div>
    <div class="code-ma">
    	<div class="code-ma__erw"><img src="${detail["qrcode"]}" /></div>
        <div class="code-ma__tis">
        	<p style=" padding:20px 0 5px; font-size:17px;">微信扫码领取优惠券</p>
            <p style=" color:#ccc;">*优惠券有效日期为<span id="J_time">7</span>天</p>
        </div>
    </div>
</div>

<script src="/js/zepto.min.js"></script>
<script src="https://res.wx.qq.com/open/libs/weuijs/1.0.0/weui.min.js"></script>
<script src="/js/comm.js"></script>
<script type="text/javascript">
//查看设置
function config_look(){
	var data = {};
	var url = "/config/indate";
	$.ajax({
		type: "POST",
		async: false,
		dataType: 'json',
		contentType: "application/json; charset=utf-8",
		data: JSON.stringify(data),
		url: url,
		success: function(res){
			if(res.code == 200){
				var datas = res.data
				$('#J_time').html(datas)	//报备有效期
			}
		},
		error: function(){

		},
		complete: function(){
		}
	});
}


$(function(){
	config_look() //报备日期
});
</script>
</body>
</html>